//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>

#include <Menus.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>

#define MYWM_NOTIFY         (WM_APP+100)
#define IDC_MYICON           1006
#include <shellapi.h>

#define MAX_TCRPE   50

//---------------------------------------------------------------------------
class TFormMain : public TForm
{
__published:	// IDE-managed Components
    TPopupMenu *PopupMenuTray;
    TMenuItem *N1;
    TMenuItem *N2;
    TMenuItem *N3;
    TImage *ImageOff;
    TImage *ImageOn;
    TMenuItem *N4;
  TMenuItem *N5;
  TMenuItem *N6;
  TImage *Image1;
  TImage *Image2;
  TImage *Image3;
  TImage *Image4;
  TImage *Image5;
  TImage *Image6;
  TImage *Image7;
  TImage *Image8;
  TImage *Image9;
  TImage *Image10;
  TImage *Image11;
  TImage *Image12;


        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall N1Click(TObject *Sender);
    void __fastcall N4Click(TObject *Sender);
  void __fastcall N5Click(TObject *Sender);


private:	// User declarations
public:		// User declarations
        unsigned long step;
        unsigned long num_file;
        AnsiString cDir;

    __fastcall TFormMain(TComponent* Owner);
    void __fastcall MyNotify(TMessage& Msg);
    void __fastcall DrawItem(TMessage& Msg);
    bool __fastcall TrayMessage(DWORD dwMessage);
    PSTR __fastcall TipText(void);
    HICON __fastcall IconHandle(void);
 

    void __fastcall ToDebug(AnsiString );
    bool    StatusRunning;
    int  TaskCount;

BEGIN_MESSAGE_MAP
VCL_MESSAGE_HANDLER(MYWM_NOTIFY,TMessage,MyNotify)
END_MESSAGE_MAP(TForm)

};
//---------------------------------------------------------------------------
extern PACKAGE TFormMain *FormMain;
//---------------------------------------------------------------------------
#endif
